package com.vip.base.redis;

import com.vip.common.response.RestResponse;
import org.springframework.web.client.RestTemplate;

/**
 * 要加入栅栏机制的类
 *
 * @author wgb
 * @date 2020/6/15 17:28
 */
class Work implements Runnable {

    @Override
    public void run() {
        RestTemplate restTemplate = new RestTemplate();
        RestResponse result = restTemplate.getForObject("http://192.168.25.172:11000/vip-base-service/api/user/0ebec4d76ada9d54f44c731360f06125", RestResponse.class);
        System.out.println(result.getData().toString());
    }
}
